#include "kzfcaptureparm.h"

kzfCaptureParm::kzfCaptureParm()
{
    //初始化参数  读取保存文档里面的参数

    //现在先手动输入数据
    umPerPixel = 10.0;
    cameraGain = 1.0;
    cameraFocal = 56;
    imgWidth = 640;
    imgHight = 480;
    cameraTotalPixel = imgWidth * imgHight;
    isCalib = true;
    calibState = calibStateIdel;
    calibMode = nullMode;
}

void kzfCaptureParm::calibParmReset()
{
    umPerPixel = 0;
    cameraGain = 0;
    cameraFocal = 0;
    imgWidth = 0;
    imgHight = 0;
    cameraTotalPixel = 0;
    isCalib = false;
    calibState = calibStateIdel;
    calibMode = nullMode;
}

void kzfCaptureParm::calibStartSet()
{
    calibParmReset();

    //弹出自定义校准窗口  带模式选择,操作提示等
}

void kzfCaptureParm::calibDoneSet()
{
    isCalib = true;
    calibState = calibStateIdel;
    calibMode = nullMode;
}

void kzfCaptureParm::calibProcess()
{

}

void kzfCaptureParm::cameraSetDPI(int width, int hight)
{

}

void kzfCaptureParm::cameraSetFocal(float focal)
{

}

void kzfCaptureParm::cameraSetSurfaseSize(float width, float hight)
{

}

void kzfCaptureParm::cameraSetSurfaseSize(float inch)
{

}

void kzfCaptureParm::cameraSetPixel(float pixelPerMillion)//输入xx百万像素
{

}








































